# -*- coding: utf-8 -*- 
#
# Description:
#
#  Definiton
#
#
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 (polo35580@hotmail.fr)
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 100
n 100(None)[return max_layer
]:
	i: 0(AL), 99()
	o: 

nname: 99
n 99(None)[]:
	i: 18(AF), 96()
	o: 100()

nname: 96
n 96(None)[]:
	i: 94(AE)
	o: 99()

nname: 94
n 94(None)[]:
	i: 51(f), 61()
	o: 96(AE)

nname: 61
n 61(None)[#, e
max_layer = max(max_layer, wid.get_layer(1))
continue
]:
	i: 51(t)
	o: 94()

nname: 51
n 51(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 25(except), 31()
	o: 61(t), 94(f)

nname: 31
n 31(None)[wid_list.extend(wid._children)
continue
]:
	i: 25(try)
	o: 51()

nname: 25
n 25(None)[for wid in wid_list:
]:
	i: 18(for)
	o: 31(try), 51(except)

nname: 18
n 18(None)[]:
	i: 0(loop)
	o: 25(for), 99(AF)

nname: 0
n 0(None)[max_layer = 0
wid_list = [display]
]:
	i: 
	o: 18(loop), 100(AL)

nname: 100
n 100(None)[return max_layer
]:
	i: 0(AL), 18(AF), 51(AE)
	o: 

nname: 51
n 51(None)[except Exception, e:
	max_layer = max(max_layer, wid.get_layer(1))
	continue
]:
	i: 25()
	o: 100(AE)

nname: 25
n 25(None)[for wid in wid_list:
try:
	wid_list.extend(wid._children)
	continue
]:
	i: 18(for)
	o: 51()

nname: 18
n 18(None)[]:
	i: 0(loop)
	o: 25(for), 100(AF)

nname: 0
n 0(None)[max_layer = 0
wid_list = [display]
]:
	i: 
	o: 18(loop), 100(AL)

nname: 100
n 100(None)[return max_layer
]:
	i: 0(AL), 18(AF), 25(AE)
	o: 

nname: 25
n 25(None)[for wid in wid_list:
try:
	wid_list.extend(wid._children)
	continue
except Exception, e:
	max_layer = max(max_layer, wid.get_layer(1))
	continue
]:
	i: 18(for)
	o: 100(AE)

nname: 18
n 18(None)[]:
	i: 0(loop)
	o: 25(for), 100(AF)

nname: 0
n 0(None)[max_layer = 0
wid_list = [display]
]:
	i: 
	o: 18(loop), 100(AL)

nname: 100
n 100(None)[return max_layer
]:
	i: 25(AE)
	o: 

nname: 25
n 25(None)[for wid in wid_list:
	try:
		wid_list.extend(wid._children)
		continue
	except Exception, e:
		max_layer = max(max_layer, wid.get_layer(1))
		continue
]:
	i: 0(for)
	o: 100(AE)

nname: 0
n 0(None)[max_layer = 0
wid_list = [display]
]:
	i: 
	o: 25(for)

nname: 100
n 100(None)[return max_layer
]:
	i: 0(AE)
	o: 

nname: 0
n 0(None)[max_layer = 0
wid_list = [display]
for wid in wid_list:
	try:
		wid_list.extend(wid._children)
		continue
	except Exception, e:
		max_layer = max(max_layer, wid.get_layer(1))
		continue
]:
	i: 
	o: 100(AE)

self.nodes: {0: <unpyclib.structure.node instance at 0xb766eb4c>, 100: <unpyclib.structure.node instance at 0xb766ea6c>}
nname: 0
n 0(None)[Container.__init__(self)
self.type = type
self.menu = None
self._is_hidden = True
display.add_child(self)
self.display = display
return None
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb766e7cc>}
nname: 0
n 0(None)[self.menu = menu
self.specific_name_list = menu._getitems_keywords.keys()
self._layer = get_max_visible_layer(self.display)
self.add_child(container)
self.set_layer(self._layer, 1)
self._animations = container._animations
del container._animations
self.sync_model_view()
self._layer_depth = get_max_visible_layer(container) - self._layer + 1
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb767058c>}
nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 0(AL), 135()
	o: 

nname: 135
n 135(None)[]:
	i: 12(AF), 132()
	o: 136()

nname: 132
n 132(None)[]:
	i: 22(AL), 131()
	o: 135()

nname: 131
n 131(None)[]:
	i: 28(AF), 128()
	o: 132()

nname: 128
n 128(None)[]:
	i: 66(JA), 90(JA), 127()
	o: 131()

nname: 127
n 127(None)[]:
	i: 44(f), 124()
	o: 128()

nname: 124
n 124(None)[continue
]:
	i: 122(AE)
	o: 127()

nname: 122
n 122(None)[]:
	i: 80(f)
	o: 124(AE)

nname: 90
n 90(None)[#, e
log.debug('Clear failed: %s.' % str(e))
]:
	i: 80(t)
	o: 128(JA)

nname: 80
n 80(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 62(except)
	o: 90(t), 122(f)

nname: 66
n 66(None)[view_element.clear()
]:
	i: 62(try)
	o: 128(JA)

nname: 62
n 62(None)[]:
	i: 44(t)
	o: 66(try), 80(except)

nname: 44
n 44(hasattr(view_element, 'clear'))[for view_element in self.get_list_obj_by_name(name):
]:
	i: 28(for)
	o: 62(t), 127(f)

nname: 28
n 28(None)[]:
	i: 22(loop)
	o: 44(for), 131(AF)

nname: 22
n 22(None)[for name in self.specific_name_list:
]:
	i: 12(for)
	o: 28(loop), 132(AL)

nname: 12
n 12(None)[]:
	i: 0(loop)
	o: 22(for), 135(AF)

nname: 0
n 0(None)[menu = self.menu
]:
	i: 
	o: 12(loop), 136(AL)

nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 0(AL), 12(AF), 22(AL), 28(AF), 66(JA), 90(JA), 80(f), 44(f), 124()
	o: 

nname: 90
n 90(None)[#, e
log.debug('Clear failed: %s.' % str(e))
]:
	i: 80(t)
	o: 136(JA)

nname: 80
n 80(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 62(except)
	o: 90(t), 136(f)

nname: 66
n 66(None)[view_element.clear()
]:
	i: 62(try)
	o: 136(JA)

nname: 62
n 62(None)[]:
	i: 44(t)
	o: 66(try), 80(except)

nname: 44
n 44(hasattr(view_element, 'clear'))[for view_element in self.get_list_obj_by_name(name):
]:
	i: 28(for)
	o: 62(t), 136(f)

nname: 28
n 28(None)[]:
	i: 22(loop)
	o: 44(for), 136(AF)

nname: 22
n 22(None)[for name in self.specific_name_list:
]:
	i: 12(for)
	o: 28(loop), 136(AL)

nname: 12
n 12(None)[]:
	i: 0(loop)
	o: 22(for), 136(AF)

nname: 0
n 0(None)[menu = self.menu
]:
	i: 
	o: 12(loop), 136(AL)

nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 0(AL), 12(AF), 22(AL), 28(AF), 80(f), 44(f), 124()
	o: 

nname: 80
n 80(None)[except Exception, e:
	log.debug('Clear failed: %s.' % str(e))
]:
	i: 62()
	o: 136(JA)

nname: 62
n 62(None)[try:
	view_element.clear()
]:
	i: 44(t)
	o: 80()

nname: 44
n 44(hasattr(view_element, 'clear'))[for view_element in self.get_list_obj_by_name(name):
]:
	i: 28(for)
	o: 62(t), 136(f)

nname: 28
n 28(None)[]:
	i: 22(loop)
	o: 44(for), 136(AF)

nname: 22
n 22(None)[for name in self.specific_name_list:
]:
	i: 12(for)
	o: 28(loop), 136(AL)

nname: 12
n 12(None)[]:
	i: 0(loop)
	o: 22(for), 136(AF)

nname: 0
n 0(None)[menu = self.menu
]:
	i: 
	o: 12(loop), 136(AL)

nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 0(AL), 12(AF), 22(AL), 28(AF), 62(f), 44(f), 124()
	o: 

nname: 62
n 62(None)[try:
	view_element.clear()
except Exception, e:
	log.debug('Clear failed: %s.' % str(e))
]:
	i: 44(t)
	o: 136(JA)

nname: 44
n 44(hasattr(view_element, 'clear'))[for view_element in self.get_list_obj_by_name(name):
]:
	i: 28(for)
	o: 62(t), 136(f)

nname: 28
n 28(None)[]:
	i: 22(loop)
	o: 44(for), 136(AF)

nname: 22
n 22(None)[for name in self.specific_name_list:
]:
	i: 12(for)
	o: 28(loop), 136(AL)

nname: 12
n 12(None)[]:
	i: 0(loop)
	o: 22(for), 136(AF)

nname: 0
n 0(None)[menu = self.menu
]:
	i: 
	o: 12(loop), 136(AL)

nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 0(AL), 12(AF), 44(f), 124()
	o: 

nname: 44
n 44(None)[for view_element in self.get_list_obj_by_name(name):
	if hasattr(view_element, 'clear'):
		try:
			view_element.clear()
		except Exception, e:
			log.debug('Clear failed: %s.' % str(e))
]:
	i: 22(for)
	o: 136(JA)

nname: 22
n 22(None)[for name in self.specific_name_list:
]:
	i: 12(for)
	o: 44(for)

nname: 12
n 12(None)[]:
	i: 0(loop)
	o: 22(for), 136(AF)

nname: 0
n 0(None)[menu = self.menu
]:
	i: 
	o: 12(loop), 136(AL)

nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 0(AL), 12(AF), 22(f), 124()
	o: 

nname: 22
n 22(None)[for name in self.specific_name_list:
for view_element in self.get_list_obj_by_name(name):
	if hasattr(view_element, 'clear'):
		try:
			view_element.clear()
		except Exception, e:
			log.debug('Clear failed: %s.' % str(e))
]:
	i: 12(for)
	o: 136(JA)

nname: 12
n 12(None)[]:
	i: 0(loop)
	o: 22(for), 136(AF)

nname: 0
n 0(None)[menu = self.menu
]:
	i: 
	o: 12(loop), 136(AL)

nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 22(f), 124()
	o: 

nname: 22
n 22(None)[for name in self.specific_name_list:
	for view_element in self.get_list_obj_by_name(name):
		if hasattr(view_element, 'clear'):
			try:
				view_element.clear()
			except Exception, e:
				log.debug('Clear failed: %s.' % str(e))
]:
	i: 0(for)
	o: 136(JA)

nname: 0
n 0(None)[menu = self.menu
]:
	i: 
	o: 22(for)

nname: 136
n 136(None)[Container.unparent(self)
menu.clear()
del self.menu
]:
	i: 0(f), 124()
	o: 

nname: 0
n 0(None)[menu = self.menu
for name in self.specific_name_list:
	for view_element in self.get_list_obj_by_name(name):
		if hasattr(view_element, 'clear'):
			try:
				view_element.clear()
			except Exception, e:
				log.debug('Clear failed: %s.' % str(e))
]:
	i: 
	o: 136(JA)

self.nodes: {0: <unpyclib.structure.node instance at 0xb75f76ac>, 136: <unpyclib.structure.node instance at 0xb7670e2c>, 124: <unpyclib.structure.node instance at 0xb7670e4c>, 122: <unpyclib.structure.node instance at 0xb7670dac>}
nname: 365
n 365(None)[return None
]:
	i: 338(), 364()
	o: 

nname: 364
n 364(None)[]:
	i: 329(t)
	o: 365()

nname: 338
n 338(None)[Task(self.unparent).start(5)
]:
	i: 329(f)
	o: 365()

nname: 329
n 329(self.cached)[]:
	i: 285(), 299(), 327(AE)
	o: 338(f), 364(t)

nname: 327
n 327(None)[]:
	i: 289(f)
	o: 329(AE)

nname: 299
n 299(None)[#, e
log.debug(str(e))
]:
	i: 289(t)
	o: 329()

nname: 289
n 289(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 202(except)
	o: 299(t), 327(f)

nname: 285
n 285(None)[]:
	i: 224(AL), 284()
	o: 329()

nname: 284
n 284(None)[]:
	i: 227(AF), 237()
	o: 285()

nname: 237
n 237(None)[for animation in self._animations:
animation.stop()
louie_disconnect(receiver=animation.play, signal=animation.event, sender=menu)
]:
	i: 227(for)
	o: 284()

nname: 227
n 227(None)[]:
	i: 224(loop)
	o: 237(for), 284(AF)

nname: 224
n 224(None)[]:
	i: 202(try)
	o: 227(loop), 285(AL)

nname: 202
n 202(None)[louie_send(signal='on_remove', sender=menu)
]:
	i: 27(AL), 201()
	o: 224(try), 289(except)

nname: 201
n 201(None)[]:
	i: 39(AF), 198()
	o: 202()

nname: 198
n 198(None)[]:
	i: 196(AE)
	o: 201()

nname: 196
n 196(None)[]:
	i: 158(f), 168()
	o: 198(AE)

nname: 168
n 168(None)[#, e
log.debug(str(e))
continue
]:
	i: 158(t)
	o: 196()

nname: 158
n 158(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 49(except), 154()
	o: 168(t), 196(f)

nname: 154
n 154(None)[continue
]:
	i: 55(AL), 153()
	o: 158()

nname: 153
n 153(None)[]:
	i: 58(AF), 149()
	o: 154()

nname: 149
n 149(None)[]:
	i: 74(f), 126()
	o: 153()

nname: 126
n 126(None)[louie_disconnect(view_element.update, name, _sender)
continue
]:
	i: 74(t)
	o: 149()

nname: 74
n 74(_sender is not None)[for view_element in self.get_list_obj_by_name(name):
_sender = getattr(view_element, 'shared_name', None)
louie_disconnect(view_element.update, name, menu)
]:
	i: 58(for)
	o: 126(t), 149(f)

nname: 58
n 58(None)[]:
	i: 55(loop)
	o: 74(for), 153(AF)

nname: 55
n 55(None)[]:
	i: 49(try)
	o: 58(loop), 154(AL)

nname: 49
n 49(None)[for name in self.specific_name_list:
]:
	i: 39(for)
	o: 55(try), 158(except)

nname: 39
n 39(None)[]:
	i: 27(loop)
	o: 49(for), 201(AF)

nname: 27
n 27(None)[menu = self.menu
]:
	i: 9(), 26()
	o: 39(loop), 202(AL)

nname: 26
n 26(None)[]:
	i: 0(f)
	o: 27()

nname: 9
n 9(None)[self._push_task.stop()
]:
	i: 0(t)
	o: 27()

nname: 0
n 0(config.fast_pushmenu)[]:
	i: 
	o: 9(t), 26(f)

nname: 329
n 329(None)[if not self.cached:
	Task(self.unparent).start(5)
return None
]:
	i: 284(), 289()
	o: 

nname: 289
n 289(None)[except Exception, e:
	log.debug(str(e))
]:
	i: 202()
	o: 329()

nname: 284
n 284(None)[]:
	i: 227()
	o: 329()

nname: 227
n 227(None)[for animation in self._animations:
	animation.stop()
	louie_disconnect(receiver=animation.play, signal=animation.event, sender=menu)
]:
	i: 202(loop)
	o: 284()

nname: 202
n 202(None)[louie_send(signal='on_remove', sender=menu)
try:
]:
	i: 0(AL), 39(AF), 158(AE)
	o: 227(loop), 289()

nname: 158
n 158(None)[except Exception, e:
	log.debug(str(e))
	continue
]:
	i: 154(), 49()
	o: 202(AE)

nname: 154
n 154(None)[continue
]:
	i: 49(AL), 58(AF), 74()
	o: 158()

nname: 74
n 74(None)[for view_element in self.get_list_obj_by_name(name):
_sender = getattr(view_element, 'shared_name', None)
louie_disconnect(view_element.update, name, menu)
if _sender is not None:
	louie_disconnect(view_element.update, name, _sender)
	continue
]:
	i: 58(for)
	o: 154()

nname: 58
n 58(None)[]:
	i: 49(loop)
	o: 74(for), 154(AF)

nname: 49
n 49(None)[for name in self.specific_name_list:
try:
]:
	i: 39(for)
	o: 58(loop), 154(AL), 158()

nname: 39
n 39(None)[]:
	i: 0(loop)
	o: 49(for), 202(AF)

nname: 0
n 0(None)[if config.fast_pushmenu:
	self._push_task.stop()
menu = self.menu
]:
	i: 
	o: 39(loop), 202(AL)

nname: 329
n 329(None)[if not self.cached:
	Task(self.unparent).start(5)
return None
]:
	i: 227(), 289()
	o: 

nname: 289
n 289(None)[except Exception, e:
	log.debug(str(e))
]:
	i: 202()
	o: 329()

nname: 227
n 227(None)[for animation in self._animations:
	animation.stop()
	louie_disconnect(receiver=animation.play, signal=animation.event, sender=menu)
]:
	i: 202(loop)
	o: 329()

nname: 202
n 202(None)[louie_send(signal='on_remove', sender=menu)
try:
]:
	i: 0(AL), 39(AF), 158(AE)
	o: 227(loop), 289()

nname: 158
n 158(None)[except Exception, e:
	log.debug(str(e))
	continue
]:
	i: 154(), 49()
	o: 202(AE)

nname: 154
n 154(None)[continue
]:
	i: 49(AL), 58(AF), 74()
	o: 158()

nname: 74
n 74(None)[for view_element in self.get_list_obj_by_name(name):
_sender = getattr(view_element, 'shared_name', None)
louie_disconnect(view_element.update, name, menu)
if _sender is not None:
	louie_disconnect(view_element.update, name, _sender)
	continue
]:
	i: 58(for)
	o: 154()

nname: 58
n 58(None)[]:
	i: 49(loop)
	o: 74(for), 154(AF)

nname: 49
n 49(None)[for name in self.specific_name_list:
try:
]:
	i: 39(for)
	o: 58(loop), 154(AL), 158()

nname: 39
n 39(None)[]:
	i: 0(loop)
	o: 49(for), 202(AF)

nname: 0
n 0(None)[if config.fast_pushmenu:
	self._push_task.stop()
menu = self.menu
]:
	i: 
	o: 39(loop), 202(AL)

self.nodes: {0: <unpyclib.structure.node instance at 0xb75fa32c>, 329: <unpyclib.structure.node instance at 0xb75fa80c>, 154: <unpyclib.structure.node instance at 0xb767066c>, 158: <unpyclib.structure.node instance at 0xb75fa56c>, 289: <unpyclib.structure.node instance at 0xb75fa18c>, 39: <unpyclib.structure.node instance at 0xb76701ec>, 49: <unpyclib.structure.node instance at 0xb75fa36c>, 58: <unpyclib.structure.node instance at 0xb767080c>, 202: <unpyclib.structure.node instance at 0xb75fa6ec>, 74: <unpyclib.structure.node instance at 0xb75fa42c>, 227: <unpyclib.structure.node instance at 0xb75faecc>}
nname: 30
n 30(None)[]:
	i: 0(AL), 29()
	o: 

nname: 29
n 29(None)[]:
	i: 3(AF), 13()
	o: 30()

nname: 13
n 13(None)[for anim in self._animations:
anim.pause()
]:
	i: 3(for)
	o: 29()

nname: 3
n 3(None)[]:
	i: 0(loop)
	o: 13(for), 29(AF)

nname: 0
n 0(None)[]:
	i: 
	o: 3(loop), 30(AL)

nname: 30
n 30(None)[]:
	i: 13()
	o: 

nname: 13
n 13(None)[for anim in self._animations:
	anim.pause()
]:
	i: 0(for)
	o: 30()

nname: 0
n 0(None)[]:
	i: 
	o: 13(for)

nname: 30
n 30(None)[]:
	i: 0()
	o: 

nname: 0
n 0(None)[for anim in self._animations:
	anim.pause()
]:
	i: 
	o: 30()

nname: 0
n 0(None)[for anim in self._animations:
	anim.pause()
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb75f75ec>}
nname: 30
n 30(None)[]:
	i: 0(AL), 29()
	o: 

nname: 29
n 29(None)[]:
	i: 3(AF), 13()
	o: 30()

nname: 13
n 13(None)[for anim in self._animations:
anim.unpause()
]:
	i: 3(for)
	o: 29()

nname: 3
n 3(None)[]:
	i: 0(loop)
	o: 13(for), 29(AF)

nname: 0
n 0(None)[]:
	i: 
	o: 3(loop), 30(AL)

nname: 30
n 30(None)[]:
	i: 13()
	o: 

nname: 13
n 13(None)[for anim in self._animations:
	anim.unpause()
]:
	i: 0(for)
	o: 30()

nname: 0
n 0(None)[]:
	i: 
	o: 13(for)

nname: 30
n 30(None)[]:
	i: 0()
	o: 

nname: 0
n 0(None)[for anim in self._animations:
	anim.unpause()
]:
	i: 
	o: 30()

nname: 0
n 0(None)[for anim in self._animations:
	anim.unpause()
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb75f726c>}
nname: 80
n 80(None)[]:
	i: 0(AL), 79()
	o: 

nname: 79
n 79(None)[]:
	i: 3(AF), 76()
	o: 80()

nname: 76
n 76(None)[]:
	i: 50(JA), 64(JA), 74(AE)
	o: 79()

nname: 74
n 74(None)[]:
	i: 33(f), 71()
	o: 76(AE)

nname: 64
n 64(None)[]:
	i: 43(except)
	o: 76(JA)

nname: 50
n 50(None)[go(child)
]:
	i: 43(try)
	o: 76(JA)

nname: 43
n 43(None)[]:
	i: 33(t)
	o: 50(try), 64(except)

nname: 33
n 33(<dummy_ex3> EXC_MATCH AttributeError)[]:
	i: 13(except), 19()
	o: 43(t), 74(f)

